package com.base.activity;

import android.content.Context;
import android.support.v4.app.Fragment;

import com.base.application.AppComponent;

import dagger.Component;

/**
 * Created by gml on 17/1/6.
 */

@ActivityScope
@Component(dependencies = AppComponent.class, modules = ActivityModule.class)
public interface ActivityComponent {
    //Exposed to sub-graphs.
    Context activity();

    void inject(Fragment fragment);
    void inject(BaseActivity baseActivity);

}